<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>Aikes_系统</title>
<link rel="stylesheet" href="css/style.css" type="text/css" media="all" />
<script type="text/javascript" src="css/js/jquery.min.js"></script>
<script type="text/javascript" src="css/js/reward.js"></script>
<script type="text/javascript" src="css/js/reward_add.js"></script>
<script type="text/javascript">
	$(function(){
		$("#navigation li a").eq(4).addClass("active");
		rewardPage(1);
	});
	
	function add(){
		$("#reward_list").hide();
		$("#reward_add").fadeIn();
	}
</script>
</head>
<body>
<div id="header">
		<div class="shell">
			<div id="top">
				<c:import url="../logo.jsp"></c:import>
			</div>
			<div id="navigation" style="padding-bottom:150px;">
				<c:import url="../menu.jsp"></c:import>
			</div>
		</div>
</div>
	<!-- Container -->
	<div id="container" >
		<!-- Content -->
		<div id="main" style="margin-left:310px;">
		  <div class="cl">&nbsp;</div>	
			<div id="content">	
				<div id="reward_list" class="box" style="width: 750px; display:block;" >
					<div class="box-head">
						<h2 class="left">奖惩管理</h2>
						<div>
							<input type="button" class="field right" value ="按名字查询" 
							style="margin-top:4.5px;height:23px;cursor:pointer" onclick="searchName();"/>
							<span class=" right" >&nbsp;</span>
							<input	type="text" id="search" class="field size3 right" style="margin-top:5px;height:10px;"/>
						</div>
					</div>
					<div class="table" id="reward_table">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<thead >
							<tr class="index_tr">
								<th width="8%;">类型</th>
								<th width="10%;">姓名</th>
								<th width="33%;">简述</th>
								<th width="30%;">处理</th>
								<th width="20%;">日期</th>
							</tr>
						</thead>
						<tbody id="reward_tbody">
							
						</tbody>
					</table>
					<!-- Pagging -->
					<div class="pagging">
						<div id = "reward_page" class="left" style = "padding:0 75px;">
			                 	
						</div>
						<div class = "right" style="padding-right: 30px;">
							<a href="javascript:add();" style="color:#666;">添加</a>
						</div>
					</div>
					<!-- End Pagging -->
				</div>
			</div>
			<!-- 修改动态 -->
			<div id="reward_add" class="box" style="width: 400px; display:none; margin-left:150px;" >
				<div class="box-head">
					<h2 class="left">添加</h2>
				</div>
				<div class="table" >
				<form class="form" style="padding:15px 10px 5px 45px; ">
				<p>
					<span class="inline-field">类型:&nbsp;&nbsp;</span> 
					<input	type="text" id="reward_add_type" class="field size2" style="width:255px;"/><span id="titleSpan"class="sp"></span>
				</p>
				<p>
					<span class="inline-field">姓名:&nbsp;&nbsp;</span> 
					<input	type="text" id="reward_add_name"class="field size2" style="width:255px;"/><span id="numSpan"class="sp"></span>
				</p>
				<p>
					<span class="inline-field">简述:&nbsp;&nbsp;</span> 
					<input	type="text" id="reward_add_detail"class="field size2" style="width:255px;"/><span id="numSpan"class="sp"></span>
				</p>
				<p>
					<span class="inline-field">处理:&nbsp;&nbsp;</span> 
					<input	type="text" id="reward_add_deal"class="field size2" style="width:255px;"/><span id="numSpan"class="sp"></span>
				</p>
				<p>
					<span class="inline-field">日期:&nbsp;&nbsp;</span> 
					<input	type="date" id="reward_add_date"class="field size2" style="width:255px;"/><span id="numSpan"class="sp"></span>
				</p>
				<div class="buttons" style="width:300px;">
					<span id="reward_add_error" class="left"></span>
					<input type="button" class="button" value="返回" onclick="reward_add_back();"/>
					<input type="button" id="save" class="button" value="保存" onclick="reward_add_submit();"/>
				</div>
				</form>
			</div>
		</div>
		</div>
	<div class="cl">&nbsp;</div>			
</div>
<!-- End Content -->

		
	</div>
	
	<!-- Footer -->
	<div id="footer">
		<div class="shell">
			<span class="left">&copy; 2017 - Aikesls</span>
		</div>
	</div>
	<!-- End Footer -->

</body>
</html>